package com.leoren.run.dbbean;

import com.leoren.run.vo.User;

import org.litepal.crud.LitePalSupport;

/**
 * 在本地数据库存放用户信息
 */
public class UserDB  extends LitePalSupport {

    private Long id;

    private Long tagId;

    private String username;

    private String password;

    private String faceImage;

    private String faceImageBig;

    private String nickname;

    private String cid;

    private String phone;

    private int sex;

    private String email;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTagId() {
        return tagId;
    }

    public void setTagId(Long tagId) {
        this.tagId = tagId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getFaceImage() {
        return faceImage;
    }

    public void setFaceImage(String faceImage) {
        this.faceImage = faceImage;
    }

    public String getFaceImageBig() {
        return faceImageBig;
    }

    public void setFaceImageBig(String faceImageBig) {
        this.faceImageBig = faceImageBig;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public UserDB(Long id, Long tagId, String username, String password, String faceImage, String faceImageBig, String nickname, String cid, String phone, int sex, String email) {
        this.id = id;
        this.tagId = tagId;
        this.username = username;
        this.password = password;
        this.faceImage = faceImage;
        this.faceImageBig = faceImageBig;
        this.nickname = nickname;
        this.cid = cid;
        this.phone = phone;
        this.sex = sex;
        this.email = email;
    }

    public UserDB(User user) {
        this.id = user.getId();
        this.tagId = user.getId();
        this.username = user.getUsername();
        this.password = user.getPassword();
        this.cid = user.getCid();
        this.faceImage = user.getFaceImage();
        this.faceImageBig = user.getFaceImageBig();
        this.nickname = user.getNickname();
        this.phone = user.getPhone();
        this.sex = user.getSex();
        this.email = user.getEmail();
    }

    public UserDB() {
    }

    @Override
    public String toString() {
        return "UserDB{" +
                "id=" + id +
                ", tagId=" + tagId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", faceImage='" + faceImage + '\'' +
                ", faceImageBig='" + faceImageBig + '\'' +
                ", nickname='" + nickname + '\'' +
                ", cid='" + cid + '\'' +
                ", phone='" + phone + '\'' +
                ", sex=" + sex +
                ", email='" + email + '\'' +
                '}';
    }
}
